import { IsEnum, IsNotEmpty } from 'class-validator';
import { MeetingStatus } from 'src/enum';

export class ChangeBookingDto {
  @IsNotEmpty({
    message: '预定id不能为空',
  })
  id: number;
  @IsNotEmpty({
    message: '状态不能为空',
  })
  @IsEnum(MeetingStatus, {
    message: '状态必须为:0:待审核、1:已通过、2:已拒绝、3:已取消',
  })
  status: MeetingStatus;
}
